<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1" name="viewport">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
    <meta content="关键字" name="keywords">
    <meta content="简介" name="description">
</head>

<body>
<script>
    let d = new Date()
    let d5 = new Date(d.getTime() + (1000 * 60 * 60 * 24 * 5))
    console.log(d5.toLocaleString())
    let d7 = new Date(d.getTime() - (1000 * 60 * 60 * 24 * 7))
    console.log(d7)
    console.log(d7.toLocaleString())
    //格式化输出 yyyy-MM-dd HH:mm:ss
    //yyyy-MM-dd
    //HH:mm:ss
    //yyyy年MM月dd日 星期二
    //MM月dd日
    //MM-dd HH:mm

    //字符串转换为date

    //计算
</script>
</body>
</html>
